﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/angular.min.js"></script>
    <script src="../js/sweetalert.min.js"></script>
    <script>

        var param = common.getUrlArgStr();

        if (param.id == undefined || param.id == "")
            window.location = "activity.html";

        var app = angular.module('myApp2', []);

        app.controller('actDetailsCtrl', function ($http, $scope) {

            $http.get('../api/student/GetProject?id=' + param.id).success(function (data) {

                if (data == null)
                    window.location = "login.html";

                $scope.names = data.ResponseDict;
            }).error(function (data, status, headers, config) {

                common.alertMessage(data.Message, status);
            });
        });

    </script>
</head>
<body>
    <div id="searchPage"></div>
    <div ng-app="myApp2" class="main">
        <div ng-controller="actDetailsCtrl" class="wrap">
            <table ng-model="names" class="table table-hover">
                <tr>
                    <td>活动名称</td>
                    <td>{{names.ProjectName}}</td>
                </tr>
                <tr>
                    <td>活动类型</td>
                    <td>{{names.Nature}}</td>
                </tr>
                <tr>
                    <td>活动时间（开始时间-结束时间）</td>
                    <td>{{names.StartTime | date:'yyyy-MM-dd'}}-{{names.EndTime | date:'yyyy-MM-dd'}}</td>
                </tr>
                <tr>
                    <td>活动场次</td>
                    <td>{{names.ActivityAmount}}</td>
                </tr>
                <tr>
                    <td>活动涉及学生总数（人）</td>
                    <td>{{names.EntrantsName}}</td>
                </tr>
                <tr>
                    <td>活动所需金额</td>
                    <td>{{names.MoneyName}}</td>
                </tr>
                <tr>
                    <td>所属社团地区</td>
                    <td>{{names.City}}</td>
                </tr>
                <tr>
                    <td>所属社团名称</td>
                    <td>{{names.AssocName}}</td>
                </tr>
                <tr>
                    <td>活动简介</td>
                    <td>{{names.ProjectRequire}}</td>
                </tr>
                <tr>
                    <td>策划书下载</td>
                    <td><a href="{{names.SponsorBook}}" target="_blank">{{names.SponsorBook == "" ? "未上传" : "下载"}}</a></td>
                </tr>
                <tr>
                    <td>活动所需物资：活动海报（A2，A3，A4）</td>
                    <td>{{names.M900000066}}</td>
                </tr>
                <tr>
                    <td>活动展架</td>
                    <td>{{names.M900000067}}</td>
                </tr>
                <tr>
                    <td>横幅</td>
                    <td>{{names.M900000069}}</td>
                </tr>
                <tr>
                    <td>传单(黑白，彩色)</td>
                    <td>{{names.M900000070}}</td>
                </tr>
                <tr>
                    <td>KT板</td>
                    <td>{{names.M900000071}}</td>
                </tr>
                <tr>
                    <td>幕布</td>
                    <td>{{names.M900000072}}</td>
                </tr>
                <tr>
                    <td>易拉宝</td>
                    <td>{{names.M900000073}}</td>
                </tr>
                <tr>
                    <td>推头</td>
                    <td>{{names.M900000074}}</td>
                </tr>
                <tr>
                    <td>灯布</td>
                    <td>{{names.M900000075}}</td>
                </tr>
                <tr>
                    <td>木构</td>
                    <td>{{names.M900000076}}</td>
                </tr>
                <tr>
                    <td>展位</td>
                    <td>{{names.M900000077}}</td>
                </tr>
                <tr>
                    <td>灯箱</td>
                    <td>{{names.M900000078}}</td>
                </tr>
                <tr>
                    <td>桁架</td>
                    <td>{{names.M900000079}}</td>
                </tr>
                <tr>
                    <td>麦克风(耳麦，手麦，麦架)</td>
                    <td>{{names.M900000080}}</td>
                </tr>
                <tr>
                    <td>帐篷</td>
                    <td>{{names.M900000081}}</td>
                </tr>
                <tr>
                    <td>桌椅</td>
                    <td>{{names.M900000082}}</td>
                </tr>
                <tr>
                    <td>音箱</td>
                    <td>{{names.M900000083}}</td>
                </tr>
                <tr>
                    <td>其他</td>
                    <td>{{names.M900000086}}</td>
                </tr>
            </table>
            <div class="activity-photo">
                <ul class="clearfix">
                    <li>
                        <div class="thumbnail">
                            <img src="{{names.ActImg1}}" alt="">
                            <p class="text-center">活动图片1（往届图片）</p>
                        </div>
                    </li>
                    <li>
                        <div class="thumbnail">
                            <img src="{{names.ActImg2}}" alt="">
                            <p class="text-center">活动图片2（往届图片）</p>
                        </div>
                    </li>
                    <li>
                        <div class="thumbnail">
                            <img src="{{names.ActImg3}}" alt="">
                            <p class="text-center">活动图片3（往届图片）</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</body>
</html>
<script>
    $("#searchPage").load("header.html", function () {
        SetCss("Act");
    });
</script>